/**
 * 配置编译环境和线上环境之间的切换
 *
 * baseUrl: 域名地址
 * routerMode: 路由模式
 */
let baseUrl
let baseJavaUrl
let baseDeepUrl
let routerMode

if (process.env.NODE_ENV == 'development') {
    baseUrl = 'http://39.99.167.199:7003' //谈
        // baseUrl = 'http://10.9.1.242:8899/' //淏龙
        // baseUrl = 'http://182.92.91.35/' //线上
    routerMode = 'history'
} else {
    console.log(process.env.BASE_API)
    baseUrl = process.env.BASE_API
    if (process.env.ENV_CONFIG == 'test') {
        baseUrl = baseUrl.replace('http:', window.location.protocol)
        console.log('test:' + baseJavaUrl)
    }
    routerMode = 'history'
}

export {
    baseUrl,
    routerMode
}